<?php
include '../template.php';
getTop("..");
?>

<h2> GO Slim Term Information</h2>

<table border="0">
        <?php
                $id = $_GET['id'];

		include '../dbconfig/config.php';
		include '../dbconfig/opendb.php';
                $query = "SELECT * FROM go WHERE id=$id";
                $result = mysql_query($query) or die("Error, query failed:$query");
                $row = mysql_fetch_array($result, MYSQL_ASSOC);
                $name = $row["name"];
                $acc = $row["acc"];
                $def = $row["def"];
                $namespace = $row["namespace"];
                $comment = $row["comment"];
                if (empty($comment)) {
                        $comment = "none";
                }
                $synonym = $row["synonym"];
                if (empty($synonym)) {
                        $synonym = "none";
                }


                echo "<tr><td><b>Accession:</b></td><td>&nbsp;</td><td>$acc</td></tr>\n";
                echo "<tr><td><b>Name:</b></td><td>&nbsp;</td><td>$name</td></tr>\n";
                echo "<tr><td><b>Namespace:</b></td><td>&nbsp;</td><td>$namespace</td></tr>\n";
                echo "<tr valign=\"top\"><td><b>Definition:</b></td><td>&nbsp;</td><td>$def</td></tr>\n";
                echo "<tr><td><b>Synonyms:</b></td><td>&nbsp;</td><td>$synonym</td></tr>\n";
                echo "<tr valign=\"top\"><td><b>Comment:</b></td><td>&nbsp;</td><td>$comment</td></tr>\n";


                include '../dbconfig/closedb.php';
        ?>
</table>

<?php getBottom(); ?>